using System;
using Silvery.Command;
namespace Silvery
{
    public interface IGameCommand : IComparable
    {
        /// <summary>
        /// 具体指令，比如"help"
        /// </summary>
        string Command { get; }
        /// <summary>
        /// 指令执行事件
        /// </summary>
        event CommandEventHandler CommandExecute;
        /// <summary>
        /// 执行方法
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="parameter"></param>
        void Execute(IGameCommandBox parent, string parameter);
        /// <summary>
        /// 说明
        /// </summary>
        string Instruction { get; }
    }
    
}
